package com.leaf.u_spring.chapter03;

import java.util.List;

//import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import com.leaf.u_spring.chapter02.CompactDisc;

@Component
public class BlankDisc implements CompactDisc {
	
	private String title;
	private String artist;
	private List<String> tracks;
	
	public BlankDisc() {}

	public BlankDisc(String title, String artist) {
		this.title = title;
		this.artist = artist;
	}
	
	
//	public BlankDisc(
//			@Value("${disc.title}") String title, 
//			@Value("${disc.artist}") String artist) {
//		this.title = title;
//		this.artist = artist;
//	}
	
	@Override
	public void play() {
		System.out.println(this.title + ">" + this.artist);
	}


	@Override
	public void playTrack(int num) {
		
	}


	public String getTitle() {
		return title;
	}


	public void setTitle(String title) {
		this.title = title;
	}


	public String getArtist() {
		return artist;
	}


	public void setArtist(String artist) {
		this.artist = artist;
	}

	public List<String> getTracks() {
		return tracks;
	}

	public void setTracks(List<String> tracks) {
		this.tracks = tracks;
	}

}
